package com.atguigu.thread;

public class ExceptionTest {
    public static void main(String[] args) throws MyException {
        try {
            System.out.println(1/0);
        } catch (Exception e) {
            throw new MyException();
        }
    }

}

class MyException extends ArithmeticException {
//    @Override
//    public String toString() {
//        return "自定义异常1";
//    }
}